<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="昵称/手机号码"/>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.status" placeholder="结果"  >
                        <i-option value="0">失败</i-option>
                        <i-option value="1">成功</i-option>
                    </i-select>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.type" placeholder="类型" filterable="true">
                        <i-option value="1">SPC兑换DSPC</i-option>
                        <i-option value="2">提链申请-冻结DSPC</i-option>
                        <i-option value="3">提链成功-解冻DSPC并扣除</i-option>
                        <i-option value="4">提链失败-解冻DSPC并还原</i-option>
                        <i-option value="5">买入</i-option>
                        <i-option value="6">卖出</i-option>
                        <i-option value="7">手续费</i-option>
                        <i-option value="8">团队奖励</i-option>
                        <i-option value="10">平台收益</i-option>
                        <i-option value="11">客服操作</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <!--#if($shiro.hasPermission("otcchangelog:save"))-->
                <!--<i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("otcchangelog:update"))-->
                <!--<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;审核</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("otcchangelog:delete"))-->
                <!--<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
                <!--#end-->
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="otcChangeLog" :rules="ruleValidate" :label-width="150">
            <!--<Form-item label="转换失败的用户id" prop="userid">-->
                <!--<i-input v-model="otcChangeLog.userid" placeholder="转换失败的用户id"/>-->
            <!--</Form-item>-->
            <Form-item label="用户" prop="userid" style="width: 268px;">
                <i-select v-model="otcChangeLog.userid" value-key="otcChangeLog.userid" prop="userselect" filterable label-in-value filterable="true"  readonly="true">
                    <i-option v-for="user in users" :value="user.did"
                              :key="user.did">{{user.nickname}}
                    </i-option>
                </i-select>
            </Form-item>
            <Form-item label="转换类型" prop="type">
                <Radio-group v-model="otcChangeLog.type" readonly="true">
                    <Radio label="1">
                        <span>SPC转换DSPC</span>
                    </Radio>
                    <Radio label="2">
                        <span>提链申请-冻结DSPC</span>
                    </Radio>
                    <Radio label="3">
                        <span>提链成功-解冻DSPC并扣除</span>
                    </Radio>
                    <Radio label="4">
                        <span>提链失败-解冻DSPC并还原</span>
                    </Radio>
                    <Radio label="5">
                        <span>买入</span>
                    </Radio>
                    <Radio label="6">
                        <span>卖出</span>
                    </Radio>
                    <Radio label="7">
                        <span>手续费</span>
                    </Radio>
                    <Radio label="8">
                        <span>团队奖励</span>
                    </Radio>
                    <Radio label="10">
                        <span>平台收益</span>
                    </Radio>
                    <Radio label="11">
                        <span>客服操作</span>
                    </Radio>

                </Radio-group>
            </Form-item>
            <Form-item label="结果" prop="status">
                <Radio-group v-model="otcChangeLog.status" readonly="true">
                    <Radio label="0">
                        <span>失败</span>
                    </Radio>
                    <Radio label="1">
                        <span>成功</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="记录原因" prop="msg">
                <i-input type="textarea" :rows="4" v-model="otcChangeLog.msg" placeholder="记录原因" readonly="true"/>
            </Form-item>
            <Form-item label="数量" prop="count">
                <i-input v-model="otcChangeLog.count" placeholder="数量" readonly="true"/>
            </Form-item>
            <Form-item label="添加时间" prop="addTime">
                <Date-picker :value="otcChangeLog.addTime"   format="yyyy-MM-dd HH:mm:ss"  placeholder="操作时间"  readonly="true" ></Date-picker>
            </Form-item>

            <hr/><br/><br/>
        <Card v-show="!showCard">
            <Form-item label="订单编号" prop="tradeordersn">
                <i-input v-model="otcTradeorder.tradeordersn" placeholder="订单编号" readonly="true" />
            </Form-item>

            <Form-item label="订单状态" prop="statusname">
                <Radio-group v-model="otcTradeorder.status"  readonly="true" >
                    <Radio label="100">
                        <span>代付款</span>
                    </Radio>
                    <Radio label="110">
                        <span>买家已付款</span>
                    </Radio>
                    <Radio label="120">
                        <span>卖家确认交易</span>
                    </Radio>
                    <Radio label="200">
                        <span>已完成</span>
                    </Radio>
                    <Radio label="400">
                        <span>已撤销</span>
                    </Radio>
                    <Radio label="401">
                        <span>查实撤销</span>
                    </Radio>
                    <Radio label="402">
                        <span>撤销中</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="留言" prop="postscript">
                <i-input type="textarea" :rows="4" v-model="otcTradeorder.postscript" placeholder="留言" readonly="true" />
            </Form-item>

            <Form-item label="单价" prop="untilprice">
                <i-input v-model="otcTradeorder.untilprice" placeholder="单价" readonly="true"/>
            </Form-item>
            <Form-item label="数量" prop="number">
                <i-input v-model="otcTradeorder.number" placeholder="数量" readonly="true" />
            </Form-item>
            <Form-item label="交易金额" prop="totalmoney">
                <i-input v-model="otcTradeorder.totalmoney" placeholder="交易金额" readonly="true" />
            </Form-item>
            <Form-item label="手续费率" prop="feerate">
                <i-input v-model="otcTradeorder.feerate" placeholder="手续费率" readonly="true" />
            </Form-item>
            <Form-item label="付款方式" prop="paymodel">
                <i-input v-model="otcTradeorder.paymodel" placeholder="付款方式" readonly="true" />
            </Form-item>
            <Form-item label="付款期限" prop="paylimit">
                <i-input v-model="otcTradeorder.paylimit" placeholder="付款期限" readonly="true" />
            </Form-item>
            <Form-item label="溢价比率" prop="premiumrate">
                <i-input v-model="otcTradeorder.premiumrate" placeholder="溢价比率" readonly="true" />
            </Form-item>
            <Form-item label="订单类型" prop="type">
                <Radio-group v-model="otcTradeorder.type"  readonly="true" >
                    <Radio label="0">
                        <span>购买订单</span>
                    </Radio>
                    <Radio label="1">
                        <span>出售订单</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="购买人姓名" prop="buyusername">
                <i-input v-model="otcTradeorder.buyusername" placeholder="购买人姓名"  readonly="true"/>
            </Form-item>
            <Form-item label="发布人姓名" prop="sellerusername">
                <i-input v-model="otcTradeorder.sellerusername" placeholder="发布人姓名" readonly="true"/>
            </Form-item>
            <Form-item label="创建日期" prop="createdat">
                <Date-picker :value="otcTradeorder.createdat"   format="yyyy-MM-dd HH:mm:ss"  placeholder="创建日期"   readonly="true" />
            </Form-item>
            <Form-item label="更新日期" prop="updatedat">
                <Date-picker :value="otcTradeorder.updatedat"   format="yyyy-MM-dd HH:mm:ss"  placeholder="更新日期"  readonly="true" />
            </Form-item>
            <Form-item label="账号" prop="accountcode">
                <i-input v-model="otcTradeorder.accountcode" placeholder="账号" readonly="true" />
            </Form-item>
            <Form-item label="开户行" prop="bankopen">
                <i-input v-model="otcTradeorder.bankopen" placeholder="开户行" readonly="true" />
            </Form-item>
            <Form-item label="收款码" prop="codeurl">
                <i-input v-model="otcTradeorder.codeurl" placeholder="收款码" readonly="true" />
            </Form-item>
        </Card>

            <Form-item>
                <!--<i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>-->
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <!--<i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>-->
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/otcchangelog.js?_${date.systemTime}"></script>
</body>
</html>